package com.band.manager.util;

import org.apache.shiro.crypto.hash.SimpleHash;

public class Md5Util {
    private static final String ALGORITH_NAME = "md5";

    public static final int HASH_ITERATIONS = 5;

    public static String encrypt(String password) {
        return new SimpleHash(ALGORITH_NAME, password, null, HASH_ITERATIONS).toHex();
    }
}
